<nav class="navbar navbar-expand-lg navbar-dark bg-primary">
    <a class="navbar-brand" href="#">教务系统</a>
    <c:if test="${not empty sessionScope.user}">
        <span class="navbar-text">
            欢迎，${sessionScope.user.username}
        </span>
    </c:if>
</nav>